.class public Lcom/opongo/android/custom/PostListAdapter;
.super Landroid/widget/SimpleCursorAdapter;
.source "PostListAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/opongo/android/custom/PostListAdapter$ViewHolder;
    }
.end annotation


# static fields
.field public static final DEBUG:Z

.field protected static final IDS:[I

.field protected static final POSTCOLUMNS:[Ljava/lang/String;

.field private static final TAG:Ljava/lang/String;


# instance fields
.field private activity:Landroid/app/Activity;

.field private categoriesIndex:I

.field private commentscountIndex:I

.field private dateIndex:I

.field private dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

.field private df:Ljava/text/DateFormat;

.field private did_vote:I

.field private footerView:Landroid/view/View;

.field private headerView:Landroid/view/View;

.field private idIndex:I

.field private imageManager:Lcom/opongo/blogapp/manager/ImageManager;

.field private imageurlIndex:I

.field public isLockLoading:Z

.field public lastpage:Z

.field public lastrefresh:J

.field private layoutId:I

.field public listView:Landroid/widget/ListView;

.field private mInflater:Landroid/view/LayoutInflater;

.field private opened:I

.field private pTime:Lcom/ocpsoft/pretty/time/PrettyTime;

.field public page:I

.field private post_author:I

.field private post_price:I

.field private post_rating:I

.field public posts:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/opongo/blogapp/common/Post;",
            ">;"
        }
    .end annotation
.end field

.field private tablename:Ljava/lang/String;

.field private titleIndex:I


# direct methods
.method static constructor <clinit>()V
    .locals 4

    .prologue
    const/4 v3, 0x4

    .line 57
    sget-boolean v0, Lcom/opongo/blogapp/AbaSettings;->DEBUG:Z

    sput-boolean v0, Lcom/opongo/android/custom/PostListAdapter;->DEBUG:Z

    .line 58
    const-class v0, Lcom/opongo/android/custom/PostListAdapter;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/opongo/android/custom/PostListAdapter;->TAG:Ljava/lang/String;

    .line 97
    const/16 v0, 0xe

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 98
    const-string v2, "_id"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "id"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "title"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    .line 99
    const-string v2, "date"

    aput-object v2, v0, v1

    const-string v1, "content"

    aput-object v1, v0, v3

    const/4 v1, 0x5

    const-string v2, "categories"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    .line 100
    const-string v2, "commentscount"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    const-string v2, "imageurl"

    aput-object v2, v0, v1

    const/16 v1, 0x8

    const-string v2, "post_order"

    aput-object v2, v0, v1

    const/16 v1, 0x9

    .line 101
    const-string v2, "opened"

    aput-object v2, v0, v1

    const/16 v1, 0xa

    const-string v2, "did_vote"

    aput-object v2, v0, v1

    const/16 v1, 0xb

    const-string v2, "post_author"

    aput-object v2, v0, v1

    const/16 v1, 0xc

    .line 102
    const-string v2, "post_price"

    aput-object v2, v0, v1

    const/16 v1, 0xd

    const-string v2, "post_rating"

    aput-object v2, v0, v1

    .line 97
    sput-object v0, Lcom/opongo/android/custom/PostListAdapter;->POSTCOLUMNS:[Ljava/lang/String;

    .line 104
    new-array v0, v3, [I

    fill-array-data v0, :array_0

    sput-object v0, Lcom/opongo/android/custom/PostListAdapter;->IDS:[I

    .line 54
    return-void

    .line 104
    :array_0
    .array-data 0x4
        0x25t 0x0t 0x8t 0x7ft
        0x29t 0x0t 0x8t 0x7ft
        0x2bt 0x0t 0x8t 0x7ft
        0x2at 0x0t 0x8t 0x7ft
    .end array-data
.end method

.method public constructor <init>(Landroid/app/Activity;Landroid/content/Context;ILandroid/database/Cursor;Ljava/lang/String;Lcom/opongo/blogapp/manager/DatabaseManager;)V
    .locals 6
    .parameter "activity"
    .parameter "context"
    .parameter "layoutId"
    .parameter "cursor"
    .parameter "tablename"
    .parameter "dbManager"

    .prologue
    .line 157
    sget-object v4, Lcom/opongo/android/custom/PostListAdapter;->POSTCOLUMNS:[Ljava/lang/String;

    sget-object v5, Lcom/opongo/android/custom/PostListAdapter;->IDS:[I

    move-object v0, p0

    move-object v1, p2

    move v2, p3

    move-object v3, p4

    invoke-direct/range {v0 .. v5}, Landroid/widget/SimpleCursorAdapter;-><init>(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[I)V

    .line 87
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/opongo/android/custom/PostListAdapter;->isLockLoading:Z

    .line 88
    const/4 v0, 0x1

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->page:I

    .line 160
    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->mInflater:Landroid/view/LayoutInflater;

    .line 161
    iput p3, p0, Lcom/opongo/android/custom/PostListAdapter;->layoutId:I

    .line 163
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyy-MM-dd HH:mm:ss"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->df:Ljava/text/DateFormat;

    .line 164
    new-instance v0, Lcom/ocpsoft/pretty/time/PrettyTime;

    new-instance v1, Ljava/util/Locale;

    const-string v2, "de"

    invoke-direct {v1, v2}, Ljava/util/Locale;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v1}, Lcom/ocpsoft/pretty/time/PrettyTime;-><init>(Ljava/util/Locale;)V

    iput-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->pTime:Lcom/ocpsoft/pretty/time/PrettyTime;

    .line 166
    iput-object p1, p0, Lcom/opongo/android/custom/PostListAdapter;->activity:Landroid/app/Activity;

    .line 167
    iput-object p6, p0, Lcom/opongo/android/custom/PostListAdapter;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    .line 169
    iput-object p5, p0, Lcom/opongo/android/custom/PostListAdapter;->tablename:Ljava/lang/String;

    .line 174
    const-string v0, "id"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->idIndex:I

    .line 175
    const-string v0, "title"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->titleIndex:I

    .line 176
    const-string v0, "date"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->dateIndex:I

    .line 177
    const-string v0, "categories"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->categoriesIndex:I

    .line 178
    const-string v0, "commentscount"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->commentscountIndex:I

    .line 179
    const-string v0, "imageurl"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->imageurlIndex:I

    .line 180
    const-string v0, "opened"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->opened:I

    .line 182
    const-string v0, "did_vote"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->did_vote:I

    .line 183
    const-string v0, "post_author"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->post_author:I

    .line 184
    const-string v0, "post_price"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->post_price:I

    .line 185
    const-string v0, "post_rating"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/android/custom/PostListAdapter;->post_rating:I

    .line 187
    new-instance v0, Lcom/opongo/blogapp/manager/ImageManager;

    invoke-direct {v0, p2}, Lcom/opongo/blogapp/manager/ImageManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->imageManager:Lcom/opongo/blogapp/manager/ImageManager;

    .line 188
    return-void
.end method

.method static synthetic access$0()Ljava/lang/String;
    .locals 1

    .prologue
    .line 58
    sget-object v0, Lcom/opongo/android/custom/PostListAdapter;->TAG:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1(Lcom/opongo/android/custom/PostListAdapter;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 89
    iget-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->tablename:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$2(Lcom/opongo/android/custom/PostListAdapter;)Landroid/app/Activity;
    .locals 1
    .parameter

    .prologue
    .line 82
    iget-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->activity:Landroid/app/Activity;

    return-object v0
.end method

.method static synthetic access$3(Lcom/opongo/android/custom/PostListAdapter;)Lcom/opongo/blogapp/manager/DatabaseManager;
    .locals 1
    .parameter

    .prologue
    .line 95
    iget-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    return-object v0
.end method


# virtual methods
.method public bindView(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V
    .locals 28
    .parameter "view"
    .parameter "context"
    .parameter "cursor"

    .prologue
    .line 255
    invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v21

    check-cast v21, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;

    .line 258
    .local v21, viewHolder:Lcom/opongo/android/custom/PostListAdapter$ViewHolder;
    const/4 v7, 0x0

    .line 260
    .local v7, date:Ljava/util/Date;
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opongo/android/custom/PostListAdapter;->df:Ljava/text/DateFormat;

    move-object/from16 v23, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->dateIndex:I

    move/from16 v24, v0

    move-object/from16 v0, p3

    move/from16 v1, v24

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Ljava/text/DateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v7

    .line 268
    :goto_0
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mTitleText:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$10(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->titleIndex:I

    move/from16 v24, v0

    move-object/from16 v0, p3

    move/from16 v1, v24

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 270
    sget-object v23, Ljava/util/Locale;->GERMANY:Ljava/util/Locale;

    invoke-static/range {v23 .. v23}, Ljava/text/NumberFormat;->getInstance(Ljava/util/Locale;)Ljava/text/NumberFormat;

    move-result-object v18

    .line 273
    .local v18, nf:Ljava/text/NumberFormat;
    :try_start_1
    move-object/from16 v0, v18

    instance-of v0, v0, Ljava/text/DecimalFormat;

    move/from16 v23, v0

    if-eqz v23, :cond_0

    .line 274
    move-object/from16 v0, v18

    check-cast v0, Ljava/text/DecimalFormat;

    move-object/from16 v23, v0

    const/16 v24, 0x0

    invoke-virtual/range {v23 .. v24}, Ljava/text/DecimalFormat;->setDecimalSeparatorAlwaysShown(Z)V

    .line 275
    move-object/from16 v0, v18

    check-cast v0, Ljava/text/DecimalFormat;

    move-object/from16 v23, v0

    const-string v24, "\u00b0"

    invoke-virtual/range {v23 .. v24}, Ljava/text/DecimalFormat;->setPositiveSuffix(Ljava/lang/String;)V

    .line 276
    move-object/from16 v0, v18

    check-cast v0, Ljava/text/DecimalFormat;

    move-object/from16 v23, v0

    const/16 v24, 0x0

    invoke-virtual/range {v23 .. v24}, Ljava/text/DecimalFormat;->setMaximumFractionDigits(I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 282
    :cond_0
    :goto_1
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->post_price:I

    move/from16 v23, v0

    move-object/from16 v0, p3

    move/from16 v1, v23

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getDouble(I)D

    move-result-wide v19

    .line 283
    .local v19, temperature:D
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyDegree:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$11(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    invoke-virtual/range {v18 .. v20}, Ljava/text/NumberFormat;->format(D)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 284
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyDegree:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$11(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    const/high16 v24, 0x3f80

    const/16 v25, 0x0

    const/high16 v26, 0x4000

    const/16 v27, -0x1

    invoke-virtual/range {v23 .. v27}, Landroid/widget/TextView;->setShadowLayer(FFFI)V

    .line 286
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->post_rating:I

    move/from16 v23, v0

    move-object/from16 v0, p3

    move/from16 v1, v23

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getDouble(I)D

    move-result-wide v9

    .line 287
    .local v9, degree:D
    const/16 v17, 0x0

    .line 289
    .local v17, new_alpha:F
    const-wide/16 v23, 0x0

    cmpl-double v23, v9, v23

    if-lez v23, :cond_1

    const-wide v23, 0x4046800000000000L

    cmpg-double v23, v9, v23

    if-gez v23, :cond_1

    .line 290
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyMeter:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$12(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    const v24, 0x7f02001e

    invoke-virtual/range {v23 .. v24}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 291
    const-wide v23, 0x4046800000000000L

    div-double v23, v9, v23

    move-wide/from16 v0, v23

    double-to-float v0, v0

    move/from16 v17, v0

    .line 293
    :cond_1
    const-wide v23, 0x4046800000000000L

    cmpl-double v23, v9, v23

    if-ltz v23, :cond_2

    .line 294
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyMeter:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$12(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    const v24, 0x7f020020

    invoke-virtual/range {v23 .. v24}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 295
    const-wide v23, 0x4056800000000000L

    div-double v23, v9, v23

    move-wide/from16 v0, v23

    double-to-float v0, v0

    move/from16 v17, v0

    .line 298
    :cond_2
    const/high16 v23, 0x437f

    mul-float v23, v23, v17

    move/from16 v0, v23

    float-to-int v4, v0

    .line 299
    .local v4, alpha:I
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyMeter:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$12(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setAlpha(I)V

    .line 302
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSomPointer:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$13(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Landroid/widget/ImageView;->getWidth()I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v22, v0

    .line 303
    .local v22, width:F
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSomPointer:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$13(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Landroid/widget/ImageView;->getHeight()I

    move-result v23

    move/from16 v0, v23

    int-to-float v13, v0

    .line 305
    .local v13, height:F
    const/16 v23, 0x0

    cmpl-float v23, v22, v23

    if-eqz v23, :cond_3

    const/16 v23, 0x0

    cmpl-float v23, v13, v23

    if-nez v23, :cond_4

    .line 306
    :cond_3
    const/high16 v22, 0x4288

    .line 307
    const/high16 v13, 0x4258

    .line 310
    :cond_4
    new-instance v5, Landroid/view/animation/RotateAnimation;

    const/16 v23, 0x0

    double-to-float v0, v9

    move/from16 v24, v0

    const/high16 v25, 0x4000

    div-float v25, v22, v25

    const/high16 v26, 0x4000

    div-float v26, v13, v26

    move/from16 v0, v23

    move/from16 v1, v24

    move/from16 v2, v25

    move/from16 v3, v26

    invoke-direct {v5, v0, v1, v2, v3}, Landroid/view/animation/RotateAnimation;-><init>(FFFF)V

    .line 313
    .local v5, an:Landroid/view/animation/Animation;
    const-wide/16 v23, 0x3e8

    move-wide/from16 v0, v23

    invoke-virtual {v5, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 314
    const/16 v23, 0x0

    move/from16 v0, v23

    invoke-virtual {v5, v0}, Landroid/view/animation/Animation;->setRepeatCount(I)V

    .line 315
    const/16 v23, 0x2

    move/from16 v0, v23

    invoke-virtual {v5, v0}, Landroid/view/animation/Animation;->setRepeatMode(I)V

    .line 316
    const/16 v23, 0x1

    move/from16 v0, v23

    invoke-virtual {v5, v0}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 319
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSomPointer:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$13(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setAnimation(Landroid/view/animation/Animation;)V

    .line 321
    new-instance v16, Ljava/text/SimpleDateFormat;

    const-string v23, "dd.MM.yyyy HH:mm"

    move-object/from16 v0, v16

    move-object/from16 v1, v23

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 322
    .local v16, ndf:Ljava/text/SimpleDateFormat;
    move-object/from16 v0, v16

    invoke-virtual {v0, v7}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v8

    .line 323
    .local v8, dateString:Ljava/lang/String;
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mDetailText:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$14(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 326
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mCommentsCount:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$15(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->commentscountIndex:I

    move/from16 v24, v0

    move-object/from16 v0, p3

    move/from16 v1, v24

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 329
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mCommentsCount:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$15(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->idIndex:I

    move/from16 v24, v0

    move-object/from16 v0, p3

    move/from16 v1, v24

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 330
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mCommentsCount:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$15(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    new-instance v24, Lcom/opongo/android/custom/PostListAdapter$1;

    move-object/from16 v0, v24

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/opongo/android/custom/PostListAdapter$1;-><init>(Lcom/opongo/android/custom/PostListAdapter;)V

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 347
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->did_vote:I

    move/from16 v23, v0

    move-object/from16 v0, p3

    move/from16 v1, v23

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v11

    .line 349
    .local v11, didVote:I
    sget-object v23, Lcom/opongo/android/custom/PostListAdapter;->TAG:Ljava/lang/String;

    new-instance v24, Ljava/lang/StringBuilder;

    const-string v25, "DidVote: "

    invoke-direct/range {v24 .. v25}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v24

    invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v24

    const-string v25, " id: "

    invoke-virtual/range {v24 .. v25}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v24

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->idIndex:I

    move/from16 v25, v0

    move-object/from16 v0, p3

    move/from16 v1, v25

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v25

    invoke-virtual/range {v24 .. v25}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v24

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 351
    if-nez v11, :cond_6

    .line 352
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$16(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    const/16 v24, 0x1

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setEnabled(Z)V

    .line 353
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mNotSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$17(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    const/16 v24, 0x1

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setEnabled(Z)V

    .line 355
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opongo/android/custom/PostListAdapter;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v23

    const v24, 0x7f020004

    invoke-virtual/range {v23 .. v24}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    .line 356
    .local v6, d:Landroid/graphics/drawable/Drawable;
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$16(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-virtual {v0, v6}, Landroid/widget/Button;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 358
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opongo/android/custom/PostListAdapter;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v23

    const v24, 0x7f020001

    invoke-virtual/range {v23 .. v24}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    .line 359
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mNotSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$17(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-virtual {v0, v6}, Landroid/widget/Button;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 361
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$16(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->idIndex:I

    move/from16 v24, v0

    move-object/from16 v0, p3

    move/from16 v1, v24

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    .line 362
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$16(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    new-instance v24, Lcom/opongo/android/custom/PostListAdapter$2;

    move-object/from16 v0, v24

    move-object/from16 v1, p0

    move-object/from16 v2, p3

    invoke-direct {v0, v1, v2}, Lcom/opongo/android/custom/PostListAdapter$2;-><init>(Lcom/opongo/android/custom/PostListAdapter;Landroid/database/Cursor;)V

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 404
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mNotSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$17(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->idIndex:I

    move/from16 v24, v0

    move-object/from16 v0, p3

    move/from16 v1, v24

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    .line 405
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mNotSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$17(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    new-instance v24, Lcom/opongo/android/custom/PostListAdapter$3;

    move-object/from16 v0, v24

    move-object/from16 v1, p0

    move-object/from16 v2, p3

    invoke-direct {v0, v1, v2}, Lcom/opongo/android/custom/PostListAdapter$3;-><init>(Lcom/opongo/android/custom/PostListAdapter;Landroid/database/Cursor;)V

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 461
    :goto_2
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mTextAuthor:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$18(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->post_author:I

    move/from16 v24, v0

    move-object/from16 v0, p3

    move/from16 v1, v24

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 465
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->imageurlIndex:I

    move/from16 v23, v0

    move-object/from16 v0, p3

    move/from16 v1, v23

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    .line 466
    .local v14, imgUrl:Ljava/lang/String;
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mThumbImg:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$19(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    if-eqz v23, :cond_9

    .line 467
    invoke-virtual {v14}, Ljava/lang/String;->length()I

    move-result v23

    const/16 v24, 0xa

    move/from16 v0, v23

    move/from16 v1, v24

    if-le v0, v1, :cond_7

    .line 468
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mThumbImg:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$19(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    const v24, 0x7f020018

    invoke-virtual/range {v23 .. v24}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 469
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opongo/android/custom/PostListAdapter;->imageManager:Lcom/opongo/blogapp/manager/ImageManager;

    move-object/from16 v23, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opongo/android/custom/PostListAdapter;->activity:Landroid/app/Activity;

    move-object/from16 v24, v0

    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mThumbImg:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$19(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v25

    move-object/from16 v0, v23

    move-object/from16 v1, v24

    move-object/from16 v2, v25

    invoke-virtual {v0, v14, v1, v2}, Lcom/opongo/blogapp/manager/ImageManager;->displayImage(Ljava/lang/String;Landroid/app/Activity;Landroid/widget/ImageView;)V

    .line 479
    :cond_5
    :goto_3
    move-object/from16 v0, p0

    iget v0, v0, Lcom/opongo/android/custom/PostListAdapter;->opened:I

    move/from16 v23, v0

    move-object/from16 v0, p3

    move/from16 v1, v23

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v15

    .line 481
    .local v15, isOpened:I
    const/16 v23, 0x1

    move/from16 v0, v23

    if-ne v15, v0, :cond_a

    .line 482
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mTitleText:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$10(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    const/16 v24, 0x40

    const/16 v25, 0x0

    const/16 v26, 0x0

    const/16 v27, 0x0

    invoke-static/range {v24 .. v27}, Landroid/graphics/Color;->argb(IIII)I

    move-result v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setTextColor(I)V

    .line 486
    :goto_4
    return-void

    .line 261
    .end local v4           #alpha:I
    .end local v5           #an:Landroid/view/animation/Animation;
    .end local v6           #d:Landroid/graphics/drawable/Drawable;
    .end local v8           #dateString:Ljava/lang/String;
    .end local v9           #degree:D
    .end local v11           #didVote:I
    .end local v13           #height:F
    .end local v14           #imgUrl:Ljava/lang/String;
    .end local v15           #isOpened:I
    .end local v16           #ndf:Ljava/text/SimpleDateFormat;
    .end local v17           #new_alpha:F
    .end local v18           #nf:Ljava/text/NumberFormat;
    .end local v19           #temperature:D
    .end local v22           #width:F
    :catch_0
    move-exception v12

    .line 262
    .local v12, e:Ljava/text/ParseException;
    invoke-virtual {v12}, Ljava/text/ParseException;->printStackTrace()V

    goto/16 :goto_0

    .line 450
    .end local v12           #e:Ljava/text/ParseException;
    .restart local v4       #alpha:I
    .restart local v5       #an:Landroid/view/animation/Animation;
    .restart local v8       #dateString:Ljava/lang/String;
    .restart local v9       #degree:D
    .restart local v11       #didVote:I
    .restart local v13       #height:F
    .restart local v16       #ndf:Ljava/text/SimpleDateFormat;
    .restart local v17       #new_alpha:F
    .restart local v18       #nf:Ljava/text/NumberFormat;
    .restart local v19       #temperature:D
    .restart local v22       #width:F
    :cond_6
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$16(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    const/16 v24, 0x0

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setEnabled(Z)V

    .line 451
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mNotSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$17(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    const/16 v24, 0x0

    invoke-virtual/range {v23 .. v24}, Landroid/widget/Button;->setEnabled(Z)V

    .line 453
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opongo/android/custom/PostListAdapter;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v23

    const v24, 0x7f020005

    invoke-virtual/range {v23 .. v24}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    .line 454
    .restart local v6       #d:Landroid/graphics/drawable/Drawable;
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$16(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-virtual {v0, v6}, Landroid/widget/Button;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 456
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/opongo/android/custom/PostListAdapter;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v23

    const v24, 0x7f020002

    invoke-virtual/range {v23 .. v24}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    .line 457
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mNotSpicyBtn:Landroid/widget/Button;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$17(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/Button;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-virtual {v0, v6}, Landroid/widget/Button;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_2

    .line 471
    .restart local v14       #imgUrl:Ljava/lang/String;
    :cond_7
    sget-boolean v23, Lcom/opongo/android/custom/PostListAdapter;->DEBUG:Z

    if-eqz v23, :cond_8

    sget-object v23, Lcom/opongo/android/custom/PostListAdapter;->TAG:Ljava/lang/String;

    new-instance v24, Ljava/lang/StringBuilder;

    const-string v25, "Image url to short to be valid: "

    invoke-direct/range {v24 .. v25}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v24

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v24

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 472
    :cond_8
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mThumbImg:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$19(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    const v24, 0x7f020018

    invoke-virtual/range {v23 .. v24}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_3

    .line 475
    :cond_9
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mThumbImg:Landroid/widget/ImageView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$19(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v23

    const v24, 0x7f020018

    invoke-virtual/range {v23 .. v24}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 476
    sget-boolean v23, Lcom/opongo/android/custom/PostListAdapter;->DEBUG:Z

    if-eqz v23, :cond_5

    sget-object v23, Lcom/opongo/android/custom/PostListAdapter;->TAG:Ljava/lang/String;

    const-string v24, "Thumbnail holder is null!"

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_3

    .line 484
    .restart local v15       #isOpened:I
    :cond_a
    #getter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mTitleText:Landroid/widget/TextView;
    invoke-static/range {v21 .. v21}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$10(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v23

    const/16 v24, 0xff

    const/16 v25, 0x0

    const/16 v26, 0x0

    const/16 v27, 0x0

    invoke-static/range {v24 .. v27}, Landroid/graphics/Color;->argb(IIII)I

    move-result v24

    invoke-virtual/range {v23 .. v24}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_4

    .line 278
    .end local v4           #alpha:I
    .end local v5           #an:Landroid/view/animation/Animation;
    .end local v6           #d:Landroid/graphics/drawable/Drawable;
    .end local v8           #dateString:Ljava/lang/String;
    .end local v9           #degree:D
    .end local v11           #didVote:I
    .end local v13           #height:F
    .end local v14           #imgUrl:Ljava/lang/String;
    .end local v15           #isOpened:I
    .end local v16           #ndf:Ljava/text/SimpleDateFormat;
    .end local v17           #new_alpha:F
    .end local v19           #temperature:D
    .end local v22           #width:F
    :catch_1
    move-exception v23

    goto/16 :goto_1
.end method

.method public newView(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .parameter "context"
    .parameter "cursor"
    .parameter "parent"

    .prologue
    .line 219
    iget-object v2, p0, Lcom/opongo/android/custom/PostListAdapter;->mInflater:Landroid/view/LayoutInflater;

    iget v3, p0, Lcom/opongo/android/custom/PostListAdapter;->layoutId:I

    .line 220
    const/4 v4, 0x0

    .line 219
    invoke-virtual {v2, v3, p3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 223
    .local v0, view:Landroid/view/View;
    new-instance v1, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;

    invoke-direct {v1}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;-><init>()V

    .line 228
    .local v1, viewHolder:Lcom/opongo/android/custom/PostListAdapter$ViewHolder;
    const v2, 0x7f080025

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mThumbImg:Landroid/widget/ImageView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$0(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/ImageView;)V

    .line 229
    const v2, 0x7f080029

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mTitleText:Landroid/widget/TextView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$1(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/TextView;)V

    .line 230
    const v2, 0x7f08002b

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mDetailText:Landroid/widget/TextView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$2(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/TextView;)V

    .line 231
    const v2, 0x7f08002a

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mCommentsCount:Landroid/widget/TextView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$3(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/TextView;)V

    .line 233
    const v2, 0x7f080054

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mTextAuthor:Landroid/widget/TextView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$4(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/TextView;)V

    .line 234
    const v2, 0x7f080053

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyDegree:Landroid/widget/TextView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$5(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/TextView;)V

    .line 235
    const v2, 0x7f080052

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSomPointer:Landroid/widget/ImageView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$6(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/ImageView;)V

    .line 236
    const v2, 0x7f080051

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyMeter:Landroid/widget/ImageView;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$7(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/ImageView;)V

    .line 237
    const v2, 0x7f080056

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mSpicyBtn:Landroid/widget/Button;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$8(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/Button;)V

    .line 238
    const v2, 0x7f080057

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    #setter for: Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->mNotSpicyBtn:Landroid/widget/Button;
    invoke-static {v1, v2}, Lcom/opongo/android/custom/PostListAdapter$ViewHolder;->access$9(Lcom/opongo/android/custom/PostListAdapter$ViewHolder;Landroid/widget/Button;)V

    .line 241
    invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 243
    return-object v0
.end method

.method public removeListViewFooter()V
    .locals 3

    .prologue
    .line 127
    :try_start_0
    iget-object v1, p0, Lcom/opongo/android/custom/PostListAdapter;->listView:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/opongo/android/custom/PostListAdapter;->footerView:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->removeFooterView(Landroid/view/View;)Z
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    .line 132
    :goto_0
    return-void

    .line 128
    :catch_0
    move-exception v0

    .line 129
    .local v0, e:Ljava/lang/NullPointerException;
    invoke-virtual {v0}, Ljava/lang/NullPointerException;->printStackTrace()V

    goto :goto_0
.end method

.method public removeListViewHeader()V
    .locals 3

    .prologue
    .line 149
    :try_start_0
    iget-object v1, p0, Lcom/opongo/android/custom/PostListAdapter;->listView:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/opongo/android/custom/PostListAdapter;->headerView:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->removeHeaderView(Landroid/view/View;)Z
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    .line 153
    :goto_0
    return-void

    .line 150
    :catch_0
    move-exception v0

    .line 151
    .local v0, e:Ljava/lang/NullPointerException;
    invoke-virtual {v0}, Ljava/lang/NullPointerException;->printStackTrace()V

    goto :goto_0
.end method

.method public setListViewFooter(Landroid/view/View;Landroid/widget/ListView;)V
    .locals 4
    .parameter "footerView"
    .parameter "listView"

    .prologue
    .line 108
    if-eqz p2, :cond_0

    .line 109
    iput-object p2, p0, Lcom/opongo/android/custom/PostListAdapter;->listView:Landroid/widget/ListView;

    .line 111
    :cond_0
    iget-object v1, p0, Lcom/opongo/android/custom/PostListAdapter;->footerView:Landroid/view/View;

    if-eqz v1, :cond_1

    .line 112
    invoke-virtual {p0}, Lcom/opongo/android/custom/PostListAdapter;->removeListViewFooter()V

    .line 114
    :cond_1
    iput-object p1, p0, Lcom/opongo/android/custom/PostListAdapter;->footerView:Landroid/view/View;

    .line 117
    :try_start_0
    iget-object v1, p0, Lcom/opongo/android/custom/PostListAdapter;->listView:Landroid/widget/ListView;

    invoke-virtual {v1, p1}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    .line 123
    :goto_0
    return-void

    .line 118
    :catch_0
    move-exception v0

    .line 120
    .local v0, e:Ljava/lang/NullPointerException;
    sget-object v1, Lcom/opongo/android/custom/PostListAdapter;->TAG:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Add footer exception: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/NullPointerException;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public setListViewHeader(Landroid/view/View;Landroid/widget/ListView;)V
    .locals 1
    .parameter "headerView"
    .parameter "listView"

    .prologue
    .line 135
    if-eqz p2, :cond_0

    .line 136
    iput-object p2, p0, Lcom/opongo/android/custom/PostListAdapter;->listView:Landroid/widget/ListView;

    .line 138
    :cond_0
    iget-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->headerView:Landroid/view/View;

    if-eqz v0, :cond_1

    .line 139
    invoke-virtual {p0}, Lcom/opongo/android/custom/PostListAdapter;->removeListViewHeader()V

    .line 141
    :cond_1
    iput-object p1, p0, Lcom/opongo/android/custom/PostListAdapter;->headerView:Landroid/view/View;

    .line 143
    if-eqz p1, :cond_2

    .line 144
    iget-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, p1}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 145
    :cond_2
    return-void
.end method

.method public stopImgLoaderThread()V
    .locals 1

    .prologue
    .line 489
    iget-object v0, p0, Lcom/opongo/android/custom/PostListAdapter;->imageManager:Lcom/opongo/blogapp/manager/ImageManager;

    invoke-virtual {v0}, Lcom/opongo/blogapp/manager/ImageManager;->stopThread()V

    .line 490
    return-void
.end method
